package cn.itsource.ymcc.util;

/** 系统错误码 **/
public enum ErrorCode {

    SYSTEM_ERROR(1001,"系统内部异常"),
    TRIPARTITE_ERROR(2001,"三方异常"),
    BUSINESS_ERROR(3001,"业务异常");

    //错误码
    private Integer code;
    //错误信息
    private String message;

    ErrorCode(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public Integer getCode() {
        return code;
    }
    public String getMessage() {
        return message+"["+code+"]";
    }
}